﻿
@{
    ViewBag.Title = "优惠券添加";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<input type="hidden" id="mapRotute" map="map_CouponList" />
<style>

</style>
<div class="title_ding">

    <p id="location">
        当前位置：
        优惠券添加
    </p>
</div>
<div class="layui">
    <div class="shopmain">
        <div class="layui-card">
            <div class="layui-card-header">添加优惠券</div>
            <div class="layui-card-body">
                <div class="layui-form" action="">
                    <div class="layui-form-item">
                        <label for="text_couponName" class="layui-form-label" style="width:118px;">
                            优惠券名称
                        </label>
                        <div class="layui-input-inline" style="width:25%">
                            <input type="text" id="text_couponName" name="text_couponName" lay-verify="required" class="layui-input">
                        </div>
                        <div class="layui-form-mid layui-word-aux">
                            <span class="x-red">*如满200减30，8折券.</span>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label for="" class="layui-form-label" style="width:118px;">
                            优惠券类型
                        </label>
                        <div class="layui-input-inline" style="width:50%">
                            <input type="radio" lay-filter="choseType" name="text_status" value="1" title="满减卷" checked>
                            <input type="radio" lay-filter="choseType" name="text_status" value="2" title="折扣券">
                        </div>
                        <div class="layui-form-mid layui-word-aux">
                            <span class="x-red">*</span>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label for="text_delAmount" class="layui-form-label" style="width:118px;">
                           减免金额
                        </label>
                        <div class="layui-input-inline" style="width:25%">
                            <input type="text" id="text_delAmount"  name="text_delAmount"  class="layui-input">
                        </div>
                        <div class="layui-form-mid layui-word-aux">
                            <span class="x-red">*</span>
                        </div>
                    </div>
                    <div class="layui-form-item" style="display:none">
                        <label for="text_discount" class="layui-form-label" style="width:118px;">
                            折扣率
                        </label>
                        <div class="layui-input-inline" style="width:25%">
                            <input type="text" id="text_discount" name="text_discount"  class="layui-input">
                        </div>
                        <div class="layui-form-mid layui-word-aux">
                            <span class="x-red">*折扣率范围1-100，90代表9折,75代表7.5折</span>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label for="text_minOrderAmount" class="layui-form-label" style="width:118px;">
                            最低消费金额
                        </label>
                        <div class="layui-input-inline" style="width:25%">
                            <input type="text" id="text_minOrderAmount" name="text_minOrderAmount" lay-verify="required|isMoney" value="0" class="layui-input">
                        </div>
                        <div class="layui-form-mid layui-word-aux">
                            <span class="x-red">*折扣券请设置0,不设最低消费金额</span>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label for="text_days" class="layui-form-label" style="width:118px;">
                            有效天数 
                        </label>
                        <div class="layui-input-inline" style="width:25%">
                            <input type="text" id="text_days" name="text_days" lay-verify="required|greaterThanZero" class="layui-input">
                        </div>
                        <div class="layui-form-mid layui-word-aux">
                            <span class="x-red">*请输入正整数</span>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label for="text_totalCount" class="layui-form-label" style="width:118px;">
                            发放总数量
                        </label>
                        <div class="layui-input-inline" style="width:25%">
                            <input type="text" id="text_totalCount" name="text_totalCount" lay-verify="required|greaterThanZero" class="layui-input">
                        </div>
                        <div class="layui-form-mid layui-word-aux">
                            <span class="x-red">*请输入正整数</span>
                        </div>
                    </div>
                   

                    <div class="layui-form-item" style="text-align:center;">
                        <div class="layui-input-block" style="margin:0;">
                            <button class="layui-btn" lay-submit lay-filter="add">提交</button>

                        </div>
                    </div>

                </div>

            </div>
        </div>
    </div>
</div>

<script src="~/scripts/Marketing/AddCoupon.js"></script>
<script>
    AddCouponClass.Instance.Init();
</script>
